/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface.Patrocinador;

import Interface.Admin.MenuAdministrador;
import javax.swing.JFrame;

/**
 *
 * @author ana.siena
 */
public class MenuPatrocinador extends javax.swing.JFrame {

    /**
     * Creates new form Patrocinador
     */
    public MenuPatrocinador() {
        initComponents();
        init();
    }
    
    private void init(){
	setVisible(true);
        setTitle("Menu Patrocinador");
        setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        botaoRemoverPatrocinador = new javax.swing.JButton();
        botaoAtualizarPatrocinador = new javax.swing.JButton();
        botaoConsultPatrocinador = new javax.swing.JButton();
        botaoCriarPatrocinador = new javax.swing.JButton();
        botaoRetornar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setText("Painel Patrocinador");

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("O que voce quer modificar no patrocinador?"));

        botaoRemoverPatrocinador.setText("Remover");
        botaoRemoverPatrocinador.addActionListener(new java.awt.event.ActionListener() {
            @Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoRemoverPatrocinadorActionPerformed(evt);
            }
        });

        botaoAtualizarPatrocinador.setText("Atualizar");
        botaoAtualizarPatrocinador.addActionListener(new java.awt.event.ActionListener() {
            @Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoAtualizarPatrocinadorActionPerformed(evt);
            }
        });

        botaoConsultPatrocinador.setText("Consultar");
        botaoConsultPatrocinador.addActionListener(new java.awt.event.ActionListener() {
            @Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoConsultPatrocinadorActionPerformed(evt);
            }
        });

        botaoCriarPatrocinador.setText("Criar");
        botaoCriarPatrocinador.addActionListener(new java.awt.event.ActionListener() {
            @Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCriarPatrocinadorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(85, 85, 85)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(botaoRemoverPatrocinador, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(botaoAtualizarPatrocinador, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(botaoConsultPatrocinador, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(botaoCriarPatrocinador, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(90, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(botaoCriarPatrocinador)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botaoConsultPatrocinador)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botaoAtualizarPatrocinador)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botaoRemoverPatrocinador)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        botaoRetornar.setText("Retornar");
        botaoRetornar.addActionListener(new java.awt.event.ActionListener() {
            @Override
			public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoRetornarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(botaoRetornar)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(21, 21, 21)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(99, 99, 99)
                            .addComponent(jLabel1))))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(botaoRetornar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botaoConsultPatrocinadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoConsultPatrocinadorActionPerformed
        // TODO add your handling code here:
        new ConsultarPatrocinador().setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_botaoConsultPatrocinadorActionPerformed

    private void botaoCriarPatrocinadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCriarPatrocinadorActionPerformed
        // TODO add your handling code here:
        new CriarPatrocinador().setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_botaoCriarPatrocinadorActionPerformed

    private void botaoRetornarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoRetornarActionPerformed
        // TODO add your handling code here:
        new MenuAdministrador().setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_botaoRetornarActionPerformed

    private void botaoAtualizarPatrocinadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoAtualizarPatrocinadorActionPerformed
        // TODO add your handling code here:
        new AlterarPatrocinador().setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_botaoAtualizarPatrocinadorActionPerformed

    private void botaoRemoverPatrocinadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoRemoverPatrocinadorActionPerformed
        // TODO add your handling code here:
        new RemoverPatrocinador().setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_botaoRemoverPatrocinadorActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoAtualizarPatrocinador;
    private javax.swing.JButton botaoConsultPatrocinador;
    private javax.swing.JButton botaoCriarPatrocinador;
    private javax.swing.JButton botaoRemoverPatrocinador;
    private javax.swing.JButton botaoRetornar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables
}
